package com.spring.future.modules.sys.web;

import com.spring.future.common.utils.Collections3;
import com.spring.future.modules.sys.domain.Account;
import com.spring.future.modules.sys.service.AccountService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by admin on 2017/1/14.
 */
@RestController
public class AccountController {
    @Autowired
    private AccountService accountService;

    @RequestMapping(value = "/weixin/getAccounts")
    public String getAccount(){
        List<Account> accountList = accountService.findAll();
        String result="";
        for(Account account:accountList){
            result =result+account.getUserName();
        }
        return result;
    }

    @RequestMapping(value = "/weixin/checkLogin")
    public Boolean checkLogin(String nickName){

        return false;
    }
}
